home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 3
/
Cream of the Crop 3.iso
/
clipper
/
ks94an.zip
/
XORS.HDR
< prev
Wrap
Text File
|
1994-04-25
|
1KB
|
44 lines
/******************************************************************************
The Klipper Library, for CA-Clipper 5.x
Copyright (c), 1994, Wallace Information Systems Engineering
FUNCTION:
_XORS( cData, cKey ) --> cStringInt
PARAMETERS:
cData : Binary Number to XOR with cKEY
cKey : Binary Number to XOR with cData
SHORT:
Perform a binary Exclusive OR with binary STRINGS.
DESCRIPTION:
_XORS() performs a bitwise XOR or two binary numbers in STRING format.
The two numbers are padded to the same number of positions (The length of
the larger number) before the operation takes place in order to
retain positional values:
100101 XORS 101 becomes 100101 XORS 000101
NOTE:
EXAMPLE:
t = _XORS('1011','11')
original '1011' Both params are padded to eight places 1010
key '11' 0011
----
Result: 1001
Result: t = "1001"
******************************************************************************/